@import '~src/assets/styles/mixins.scss';

#panel {
  position: absolute;
  pointer-events: none;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  z-index: 200;
  display: flex;

  .pdfVideo {
    margin-top: 20px;
    margin-left: 20px;
    width: 560px;

    .nodata {
      margin-top: 20px;
    }

    // pointer-events: all;
  }

  .slideMenu {
    width: 80px;
    pointer-events: all;
  }

  .searchContainer {
    margin-top: 20px;
    margin-left: 20px;
    width: 360px;
    height: fit-content;
    pointer-events: all;

    .searchinput {
      padding: 20px 14px;
    }

    .search-sta {
      height: 40px;
      line-height: 40px;
      margin: 14px 0;
      border-bottom: 1px solid #DDD9D9;
      border-top: 1px solid #DDD9D9;
    }

    .pagination {
      height: 80px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }

  .dataContainer {
    margin-top: 20px;
    margin-left: 20px;
    width: calc(100% - 200px);
    height: fit-content;
    pointer-events: all;

    .searchinput {
      padding: 20px 14px;
    }

    .search-sta {
      height: 40px;
      line-height: 40px;
      margin: 14px 0;
      border-bottom: 1px solid #DDD9D9;
      border-top: 1px solid #DDD9D9;
    }

    .pagination {
      height: 80px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }

}

.card {
  display: flex;
  @include card();

  &__title {
    margin: 0 0 0.5rem 0;
  }

  &__subtitle {
    margin: 0 0 0.5rem 0;
  }

  &__toolbar button {
    @include button(#145092);
  }

  &__avatar {
    height: 80px;
    width: $avatar-width;
    border: 2px solid #bbb;
    background: #666;
    position: relative;
    overflow: hidden;

    &__head {
      position: absolute;
      border-radius: 50%;
      background: #bbb;
      width: 35px;
      height: 35px;
      top: 15px;
      left: 22px;
    }

    &__body {
      position: absolute;
      border-radius: 50%;
      background: #bbb;
      width: 70px;
      height: 50px;
      top: 55px;
      left: 5px;
    }
  }
}

.container {
  // width: $card-width - $avatar-width - $container-margin;
  // margin: 0 $container-margin;
  pointer-events: all;

  .btns {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
    width: 100%;
    border-bottom: solid 1px #cccccc;

    nz-radio-group {
      display: flex;

      label {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 80px;
        height: 36px;
      }
    }
  }

  .PDF {
    .PDFResult {
      & .items {
        margin: 5px 0px;
        cursor: pointer;

        & .title {
          margin-left: 10px;
        }

        & :hover {
          color: rgb(24, 144, 255);
        }
      }
    }
  }

  .video {
    .pagelist {
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 16px;
      padding: 10px;
      cursor: pointer;
    }

    .videoResult {
      max-height: 463px;
      overflow: auto;
      padding: 10px 17px;
      background: #ebebeb;
      border-radius: 1px;
      display: grid;
      grid-template-columns: 239px 239px;
      grid-template-rows: 199px;
      grid-column-gap: 8px;
      grid-row-gap: 10px;

      .video {
        width: 239px;
        height: 199px;
        position: relative;

        .name {
          position: absolute;
          top: 0;
          background: rgba(0, 0, 0, 0.6);
          color: #fff;
          z-index: 9;
          width: 100%;
          height: 24px;
          line-height: 24px;
          padding-left: 10px;
        }

        .play-img {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          z-index: 8;
          background-image: url('~/assets/img/video/play.png');
          ;
        }

        video::-webkit-media-controls-enclosure {
          display: none;
        }
      }
    }
  }

  // 公共
  .tabs,
  .videonum {
    height: 36px;
    width: 520px;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    // border-top: solid 1px #cccccc;
    border-bottom: solid 1px #cccccc;
    padding: 2px 8px;
    margin-bottom: 10px;
  }
}

.tec-recommend-container,
.contaminated-data-container,
.gyb-container {
  position: absolute;
  background: #fff;
  top: 0;
  left: 80px;
  width: calc(100% - 80px);
  height: 100%;
  z-index: 1000;
}
